package com.ccloud.blog.modules.blog.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chentailai
 * @since 2019-10-08
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("echo_business_blog_reply")
public class BlogReply extends Model<BlogReply> {

    private static final long serialVersionUID = 1L;

    /**
     * 回复表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 评论id
     */
    private Integer commentId;
    /**
     * 评论者id（关联user表）
     */
    private Integer reviewerId;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 评论创建时间
     */
    private Date createTime;
    /**
     * 被评论人id
     */
    private Integer commentatorId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
